<%@ page import="com.plan.Employee" %>


<div class="splitcontentleft">
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'userName', 'error')} ">
		<label for="userName">
			<g:message code="employee.userName.label" default="User Name" />
			
		</label>
		<g:textField name="userName" maxlength="50" value="${employeeInstance?.userName}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'name', 'error')} ">
		<label for="name">
			<g:message code="employee.name.label" default="Name" />
			
		</label>
		<g:textField name="name" maxlength="50" value="${employeeInstance?.name}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'depart', 'error')} ">
		<label for="depart">
			<g:message code="employee.depart.label" default="Depart" />
			
		</label>
		<g:textField name="depart" maxlength="50" value="${employeeInstance?.depart}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'duty', 'error')} ">
		<label for="duty">
			<g:message code="employee.duty.label" default="Duty" />
			
		</label>
		<g:select id="duty" name="duty" from="${com.plan.Params.findAllByParmType('duty')}" 
			optionKey="name"  value="${employeeInstance?.duty}" class="many-to-one" style="width:130px;"/>
	</div>

	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'subject', 'error')} ">
		<label for="subject">
			<g:message code="employee.subject.label" default="Subject" />
			
		</label>
		<g:select id="subject" name="subject" from="${com.plan.Params.findAllByParmType('subject')}" 
			optionKey="name"  value="${employeeInstance?.subject}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'teams', 'error')} ">
		<label for="teams">
			<g:message code="employee.teams.label" default="Teams" />
			
		</label>
		<g:textField name="teams" maxlength="50" value="${employeeInstance?.teams}"/>
	</div>
</div>

<div class="splitcontentright">
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'workStatus', 'error')} ">
		<label for="workStatus">
			<g:message code="employee.workStatus.label" default="Work Status" />
			
		</label>
		<g:select id="workStatus" name="workStatus" from="${com.plan.Params.findAllByParmType('work_status')}" 
			optionKey="name"  value="${employeeInstance?.workStatus}" class="many-to-one" style="width:130px;"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'workContent', 'error')} ">
		<label for="workContent">
			<g:message code="employee.workContent.label" default="Work Content" />
			
		</label>
		<g:textField name="workContent" maxlength="50" value="${employeeInstance?.workContent}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'picPath', 'error')} ">
		<label for="picPath">
			<g:message code="employee.picPath.label" default="Pic Path" />
			
		</label>
		<g:textField name="picPath" maxlength="100" value="${employeeInstance?.picPath}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'remark', 'error')} ">
		<label for="remark">
			<g:message code="employee.remark.label" default="Remark" />
			
		</label>
		<g:textArea name="remark" cols="40" rows="5" maxlength="500" value="${employeeInstance?.remark}"/>
	</div>
	<!--
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'str1', 'error')} ">
		<label for="str1">
			<g:message code="employee.str1.label" default="Str1" />
			
		</label>
		<g:textField name="str1" value="${employeeInstance?.str1}"/>
	</div>
	
	<div class="fieldcontain ${hasErrors(bean: employeeInstance, field: 'str2', 'error')} ">
		<label for="str2">
			<g:message code="employee.str2.label" default="Str2" />
			
		</label>
		<g:textField name="str2" value="${employeeInstance?.str2}"/>
	</div>
	-->
</div>
